{% extends 'base.html' %}
{% block menutab %}
<div class="menutab"><a href="/">广播大厅</a></div>
<div class="menutab currenttab"><a href="/member/">我的主页</a></div>
<div class="menutab"><a href="/dailyreport/">每日总结</a></div>
<div class="menutab"><a href="/curriculum/">课程表</a></div>
<div class="menutab"><a href="/favorite/">收藏夹</a></div>
{% endblock %}
{% block main %}
<div id="TopicTextarea">
	<textarea id="TopicForm" name="topic"></textarea>
	<div id="TopicFormControl">
		<button type="button" id="TopicButton" class="button orange">提交</button>
		<div class="clearfix"></div>
	</div>
</div>
<div id="TopicWrap">
{% include 'topics.html'%}
</div>

{% if paginator.count > paginator.per_page %}
<div class="pagination">
	<span class="step-links">
		{% if topics.has_previous %}
			<span class="prev round-corner-button"><a href="?page={{ topics.previous_page_number }}">上一页</a></span>
		{% endif %}

		<span class="current round-button">
			页数 {{ topics.number }}/{{ topics.paginator.num_pages }}
		</span>

		{% if topics.has_next %}
			<span class="next round-corner-button"><a href="?page={{ topics.next_page_number }}">下一页</a></span>
		{% endif %}
	</span>
</div>
{% endif %}
{% endblock %}